package com.goodving.guli.database;

import android.database.sqlite.SQLiteDatabase;

import com.goodving.guli.bt.profile.scale.GuliLog;

/* renamed from: cn.com.smartdevices.bracelet.d.A */
public final class C0837A {
    public static final String f4306a = "parterconfig";
    static final String f4307b = "CREATE TABLE IF NOT EXISTS parterconfig(_id  INTEGER PRIMARY KEY AUTOINCREMENT,color TEXT,title TEXT,sub_title TEXT,share_content TEXT,icon ICON,third_app_id TEXT,expire_time INTEGER DEFAULT 0,status INTEGER DEFAULT 0,url TEXT );";
    static final String f4308c = "ALTER TABLE parterconfig ADD COLUMN status INTEGER DEFAULT 0";
    static final String f4309d = "ALTER TABLE parterconfig ADD COLUMN share_content TEXT";

    static void m8904a(SQLiteDatabase sQLiteDatabase) {
        try {
            sQLiteDatabase.execSQL("DELETE FROM parterconfig");
        } catch (Exception e) {
            GuliLog.tracePrintError("DB", e.getMessage());
        }
    }

    static void m8905a(SQLiteDatabase sQLiteDatabase, int i, int i2) {
        if (i >= 5) {
            try {
                sQLiteDatabase.execSQL(f4308c);
            } catch (Exception e) {
                GuliLog.tracePrintError("DB", e.getMessage());
            }
        }
        if (i >= 10) {
            try {
                sQLiteDatabase.execSQL(f4309d);
            } catch (Exception e2) {
                GuliLog.tracePrintError("DB", e2.getMessage());
            }
        }
    }

    static void m8906b(SQLiteDatabase sQLiteDatabase) {
        sQLiteDatabase.execSQL(f4307b);
    }
}
